import request from '@/utils/request.js'

// 祠堂列表
export function ancestralList(data) {
	return request({
		url: '/app/ancestral/ancestralList',
		data: data,
		method: "GET",
	})
}
// 堂号列表
export function tangHaoList(data) {
	return request({
		url: '/app/ancestral/tangHaoList',
		data: data,
		method: "GET",
	})
}
// 牌位列表
export function tabletList(data) {
	return request({
		url: '/app/ancestral/tabletList',
		data: data,
		method: "GET",
	})
}
// 分类列表
export function typeList(data) {
	return request({
		url: '/app/ancestral/typeList',
		data: data,
		method: "GET",
	})
}
// 商品列表
export function ancestralgoodsList(data) {
	return request({
		url: '/app/ancestral/goodsList',
		data: data,
		method: "GET",
	})
}


// 添加子女
export function addApply(data) {
	return request({
		url: '/app/user/addApply',
		data: data,
		method: "post",
	})
}


// 添加订单
export function addOrder(data) {
	return request({
		url: '/app/ancestral/addOrder',
		data: data,
		method: "post",
	})
}

// 捐赠
export function addDonate(data) {
	return request({
		url: '/app/ancestral/addDonate',
		data: data,
		method: "post",
	})
}

// 商品列表
export function orderList(data) {
	return request({
		url: '/app/user/orderList',
		data: data,
		method: "GET",
	})
}


// 捐赠记录
export function donateList(data) {
	return request({
		url: '/app/user/donateList',
		data: data,
		method: "GET",
	})
}

// 根据名字编号查询
export function familyList(data) {
	return request({
		url: '/app/home/familyList',
		data: data,
		method: "GET",
	})
}
// 族谱查询
export function familyTree(data) {
	return request({
		url: '/app/home/familyTree',
		data: data,
		method: "GET",
	})
}

// 授权域名
export function sUrl(data) {
	return request({
		url: '/app/mini/signUrl',
		data: data,
		method: "GET",
	})
}

// 普书查询
export function psQuery(data) {
	return request({
		url: '/app/home/familyPageList',
		data: data,
		method: "GET",
	})
}